/*
    18. Write a C program to convert a given integer (in days) to years,
    months and days, assumes that all months have 30 days and all years have 365 days.
    Test Data :
    Input no. of days: 2535
    Expected Output:
    6 Year(s)
    11 Month(s)
    15 Day(s)
*/

#include <stdio.h>

int main(void)
{
    int years, months, days, inputdays;
    printf("Input no. of days: ");
    scanf("%d", &inputdays);
    years = inputdays / 365;
    months = (inputdays % 365) / 30;
    days = (inputdays % 365) % 30;
    printf("%d Year(s)\n%d Month(s)\n%d Day(s)\n", years, months, days);
    return 0;
}